package cn.com.entity;

import java.io.Serializable;
import java.util.Set;

public class Departments implements Serializable{
		/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
		//创建科室类
	
	private int departmentsid;
	private String departmentsname;  //科室名
	private String departmentsprofile; //科室简介
	private String departmentsposition; //科室位置
	private Set<Doctor> doctorset;     //设置一对多关系，包括了一个医生的集合
	public Set<Doctor> getDoctorset() {
		return doctorset;
	}
	public void setDoctorset(Set<Doctor> doctorset) {
		this.doctorset = doctorset;
	}
	public Departments(int departmentsid, String departmentsname,
			String departmentsprofile, String departmentsposition) {
		super();
		this.departmentsid = departmentsid;
		this.departmentsname = departmentsname;
		this.departmentsprofile = departmentsprofile;
		this.departmentsposition = departmentsposition;
	}
	public Departments() {
		super();
	}
	public Departments(String departmentsname, String departmentsprofile,
			String departmentsposition) {
		super();
		this.departmentsname = departmentsname;
		this.departmentsprofile = departmentsprofile;
		this.departmentsposition = departmentsposition;
	}
	public int getDepartmentsid() {
		return departmentsid;
	}
	public void setDepartmentsid(int departmentsid) {
		this.departmentsid = departmentsid;
	}
	public String getDepartmentsname() {
		return departmentsname;
	}
	public void setDepartmentsname(String departmentsname) {
		this.departmentsname = departmentsname;
	}
	public String getDepartmentsprofile() {
		return departmentsprofile;
	}
	public void setDepartmentsprofile(String departmentsprofile) {
		this.departmentsprofile = departmentsprofile;
	}
	public String getDepartmentsposition() {
		return departmentsposition;
	}
	public void setDepartmentsposition(String departmentsposition) {
		this.departmentsposition = departmentsposition;
	}
	public Departments(int departmentsid) {
		super();
		this.departmentsid = departmentsid;
	}
	
	
}
